package structural.decorator;

public abstract class FanalysisDecorator extends AbstractFanalysisStrategy{
    private AbstractFanalysisStrategy strategy;

    protected FanalysisDecorator(AbstractFanalysisStrategy _strategy){
        this.strategy = _strategy;
    }
    protected abstract void run();

    @Override
    public final void persist(){
        this.strategy.persist();
        //进行增强
        this.run();
    }
}
